package week1;

public class Ex5 {
    public static void main(String[] args) {
        long s = 2520L;
        int[] a = {11, 12, 13, 14, 15, 16, 17, 18, 19, 20};
        for (int j : a) {
            s = lcm(s, j);
        }
        System.out.println(s);
    }
    public static long gcd(long m , long n){
        if (n == 0) return m;
        else return gcd(n, m % n);
    }
    public static long lcm(long m, long n){
        return m*n/gcd(m,n);
    }
}
